/*
 * Copyright (C) 2018 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.api.search.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;

/**
 * 原生搜索表单
 *
 * @author zhangbi617
 * @date 2018-03-05
 */
@ApiModel(description = "原生查询form")
public class NativeSearchForm {

    /**
     * 索引名
     */
    @ApiModelProperty(value = "索引名", required = true)
    private String indexName;
    /**
     * 查询参数字符串
     */
    @ApiModelProperty(value = "查询参数字符串,例如{\"hl.fl:generalizeFields\",\"q\":\"generalizeFields:302\"}", required = true, dataType = "Map")
    private Map<String, String> params;

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }
}
